using System.Collections.Generic;
using HCI.Questionaire.Entities;

namespace HCI.Questionaire.QuestionGroup
{
    public class QuestionGroup7 : QuestionGroupBase
    {
        #region QuestionGroupBase Members

        public override string Description
        {
            get
            {
                return "ข้อมูลทั่วไปของผู้ตอบแบบสอบถาม";
            }
        }

        public override string Instruction
        {
            get
            {
                return "เพื่อประโยชน์ของข้อมูล กรุณากรอกข้อมูลส่วนตัว";
            }
        }

        public override string QuestionStateText
        {
            get
            {
                if (this.QuestionList == null)
                    return "1/8";
                return string.Format("{0}/{1}", this.CurrentQuestionIndex + 1, this.QuestionList.Count);
            }
        }

        protected override List<Question> CreateQuestionInGroup()
        {
            //var questionList = new List<Question>();

            var q1 = new OneAnswerQuestion { QuestionText = "เพศ", AnswerCollection = new List<Answer>() };
            q1.AddAnswer(new Answer { AnswerText = "ชาย" });
            q1.AddAnswer(new Answer { AnswerText = "หญิง" });

            var q2 = new OneAnswerQuestion { QuestionText = "อายุ", AnswerCollection = new List<Answer>() };
            q2.AddAnswer(new Answer { AnswerText = "ไม่เกิน 20 ปี" });
            q2.AddAnswer(new Answer { AnswerText = "21 - 30 ปี" });
            q2.AddAnswer(new Answer { AnswerText = "31 - 40 ปี" });
            q2.AddAnswer(new Answer { AnswerText = "41 - 50 ปี" });
            q2.AddAnswer(new Answer { AnswerText = "มากกว่า 50 ปี" });

            var q3 = new OneAnswerQuestion { QuestionText = "สถานภาพสมรส", AnswerCollection = new List<Answer>() };
            q3.AddAnswer(new Answer { AnswerText = "โสด" });
            q3.AddAnswer(new Answer { AnswerText = "สมรส" });
            q3.AddAnswer(new Answer { AnswerText = "หม้าย/หย่า" });

            var q4 = new OneAnswerQuestion { QuestionText = "อาชีพ", AnswerCollection = new List<Answer>() };
            q4.AddAnswer(new Answer { AnswerText = "นักเรียน นิสิต นักศึกษา" });
            q4.AddAnswer(new Answer { AnswerText = "รับราชการ/รัฐวิสาหกิจ" });
            q4.AddAnswer(new Answer { AnswerText = "ทำงานอิสระ" });
            q4.AddAnswer(new Answer { AnswerText = "แม่บ้าน/พ่อบ้าน" });
            q4.AddAnswer(new Answer { AnswerText = "ค้าขาย/ประกอบธุรกิจส่วนตัว" });
            q4.AddAnswer(new Answer { AnswerText = "พนักงานบริษัท/ห้างร้าน/เอกชน" });
            q4.AddAnswer(new Answer { AnswerText = "อื่นๆ (โปรดระบุ)........" });

            var q5 = new OneAnswerQuestion { QuestionText = "รายได้ต่อเดือน", AnswerCollection = new List<Answer>() };
            q5.AddAnswer(new Answer { AnswerText = "ไม่เกิน 10,000 บาท" });
            q5.AddAnswer(new Answer { AnswerText = "10,001 - 20,000 บาท" });
            q5.AddAnswer(new Answer { AnswerText = "20,001 - 30,000 บาท" });
            q5.AddAnswer(new Answer { AnswerText = "30,001 - 40,000 บาท" });
            q5.AddAnswer(new Answer { AnswerText = "40,001 - 50,000 บาท" });
            q5.AddAnswer(new Answer { AnswerText = "50,001 - 60,000 บาท" });
            q5.AddAnswer(new Answer { AnswerText = "มากกว่า 60,000 บาท" });

            var q6 = new OneAnswerQuestion { QuestionText = "รายได้รวมของครอบครัว ต่อเดือน", AnswerCollection = new List<Answer>() };
            q6.AddAnswer(new Answer { AnswerText = "น้อยกว่า 10,000 บาท" });
            q6.AddAnswer(new Answer { AnswerText = "10,001 - 20,000 บาท" });
            q6.AddAnswer(new Answer { AnswerText = "20,001 - 30,000 บาท" });
            q6.AddAnswer(new Answer { AnswerText = "30,001 - 40,000 บาท" });
            q6.AddAnswer(new Answer { AnswerText = "40,001 - 50,000 บาท" });
            q6.AddAnswer(new Answer { AnswerText = "50,001 - 60,000 บาท" });
            q6.AddAnswer(new Answer { AnswerText = "มากกว่า 60,000 บาท" });

            var q7 = new OneAnswerQuestion { QuestionText = "จำนวนสมาชิกในครัวเรือน", AnswerCollection = new List<Answer>() };
            q7.AddAnswer(new Answer { AnswerText = "1 - 2 คน" });
            q7.AddAnswer(new Answer { AnswerText = "3 - 4คน" });
            q7.AddAnswer(new Answer { AnswerText = "มากกว่า 4 คน" });

            var q8 = new OneAnswerQuestion { QuestionText = "ระดับการศึกษา", AnswerCollection = new List<Answer>() };
            q8.AddAnswer(new Answer { AnswerText = "ต่ำกว่าปริญญาตรี" });
            q8.AddAnswer(new Answer { AnswerText = "ปริญญาตรี" });
            q8.AddAnswer(new Answer { AnswerText = "สูงกว่าปริญญาตรี" });

            this.AddQuestion(q1);
            this.AddQuestion(q2);
            this.AddQuestion(q3);
            this.AddQuestion(q4);
            this.AddQuestion(q5);
            this.AddQuestion(q6);
            this.AddQuestion(q7);
            this.AddQuestion(q8);

            return this._QuestionList;
        }
        #endregion

        public override int GroupIndex
        {
            get { return 6; }
        }
    }
}
